Default settings for the popup.

<div class="definition">
    Object, default - see below
</div>

The code below shows the initial object:

<textarea class="javascript">
defaults: {
    title         : '',        // html for title - empty by default
    body          : '',        // html for body - empty by default
    buttons       : '',        // html for buttons - empty by default
    actions       : {},        // object with actions (buttons on the bottom)
    width         : 500,       // width of the popup
    height        : 300,       // height of the popup
    style         : '',        // additional styles
    color         : '#000',    // color of the screen lock
    opacity       : 0.4,       // opacity of the screen lock
    speed         : 0.3,       // speed popup appears
    modal         : false,     // if modal, it cannot be closed by clicking on the screen lock
    maximized     : false,     // indicates if popup is maximized
    openMaximized : false,     // if true, popup will be opened maximized initially
    keyboard      : true,      // will close popup on ESC if not modal
    showClose     : true,      // show closed button by default
    showMax       : false,     // do not show max button by default
    transition    : null,      // no content transition by default
    multiple      : false      // if popup already open, opens as a message
},
</textarea>

default.actions is an object, here is an example of it
<textarea class="javascript">
actions: {
    Ok(event) {
        w2popup.close()
    },
    Cancel(event) {
        w2popup.close()
    },
    // you can also define a class and style for the button
    cutom: {
        class: 'custom-class',
        style: '<more-css-styles>',
        click(event) {
            console.log('button clickced')
        }
    }
}
</textarea>

Each time you open a popup a set of default settings will be used plus whatever properties you provide.